<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<p id="p1">
			hello javascript dom 
			<a href="#">百度一下</a>
		 </p>
		
		
		<div class="box">
			这是一个div
		</div>
		<p class="box">第二个段落</p>
		
		<script type="text/javascript">
			let boxEle = document.getElementsByClassName('box')[1];
			alert(boxEle.innerText)
		</script>
	</body>
</html>
